import request from '@/utils/request'

// 查询房间信息管理列表
export function listRoomNum(query) {
  return request({
    url: '/ruoyi/roomNum/list',
    method: 'get',
    params: query
  })
}

// 查询房间信息管理详细
export function getRoomNum(roomId) {
  return request({
    url: '/ruoyi/roomNum/' + roomId,
    method: 'get'
  })
}

// 新增房间信息管理
export function addRoomNum(data) {
  return request({
    url: '/ruoyi/roomNum',
    method: 'post',
    data: data
  })
}

// 修改房间信息管理
export function updateRoomNum(data) {
  return request({
    url: '/ruoyi/roomNum',
    method: 'put',
    data: data
  })
}

// 删除房间信息管理
export function delRoomNum(roomId) {
  return request({
    url: '/ruoyi/roomNum/' + roomId,
    method: 'delete'
  })
}
